﻿<include file="Public/head"/>
<div class="container-fluid">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">修改图文信息</h3>
    </div>
    <div class="modal-body">
        <form action="{:U('Show/edit')}" class="form-horizontal" method="post" enctype="multipart/form-data">
            <div class="control-group">
                <label class="control-label">文章标题</label>
                <div class="controls" id="keyword">
                    <input type="text" name="title" placeholder="标题" value="{$data.title}">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">类型</label>
                <div class="controls">
                    <select name="type_id">
                        <option name="type_id" value="1">两性知识</option>
                        <option name="type_id" value="2">情色逗逼</option>
                        <option name="type_id" value="3">性爱知识</option>
                        <option name="type_id" value="4">情趣攻略</option>
                        <option name="type_id" value="5">助情音乐</option>
                        <option name="type_id" value="6">性感诱惑</option>
                    </select>

                </div>
            </div>
            <div class="control-group img">
                <label class="control-label">上传封面图片</label>
                <div class="controls">
                    <input type="file" name="file">
                </div>
            </div>
            <div class="control-group img">
                <label class="control-label">原始封面图片</label>
                <div class="controls">
                    <img src="__PUBLIC__/{$data.img}" alt="无原始图片" style="width: 200px;">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">发布内容</label>
                <div class="controls">
                    <textarea  rows="4" id="myEditor" name="content">{$data.content}</textarea>
                    <script type="text/javascript">
                        var s=UE.getEditor("myEditor");
//                        editor.setContent("{$data.content}");
                    </script>
                </div>
            </div>
            <input type="text" name="id" style="display: none" value="{$data.id}">

        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" onclick='history.go(-1)'>返回</button>
        <button class="btn btn-primary" id="add" onclick="add();">提交</button>
    </div>
</div>

<include file="Public/foot"/>